// Dynamic tree editor - tree-like data structures editor for .NET/Mono.
// Copyright (C) 2006  Vladimir Sibirov
// 
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
// 
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
// 
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;

namespace TreeEditor
{
	/// <summary>
	/// A dialog that ensures if a user really wants to clear the tree.
	/// </summary>
	public class TreeClearDialog : System.Windows.Forms.Form
	{
		private System.Windows.Forms.Label labelQuestion;
		private System.Windows.Forms.Button buttonOK;
		private System.Windows.Forms.Button buttonCancel;
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.Container components = null;

		/// <summary>
		/// Form constructor.
		/// </summary>
		public TreeClearDialog()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			//
			// TODO: Add any constructor code after InitializeComponent call
			//
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(TreeClearDialog));
			this.labelQuestion = new System.Windows.Forms.Label();
			this.buttonOK = new System.Windows.Forms.Button();
			this.buttonCancel = new System.Windows.Forms.Button();
			this.SuspendLayout();
			// 
			// labelQuestion
			// 
			this.labelQuestion.AccessibleDescription = null;
			this.labelQuestion.AccessibleName = null;
			this.labelQuestion.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("labelQuestion.Anchor")));
			this.labelQuestion.AutoSize = ((bool)(resources.GetObject("labelQuestion.AutoSize")));
			this.labelQuestion.BackgroundImageLayout = ((System.Windows.Forms.ImageLayout)(resources.GetObject("labelQuestion.BackgroundImageLayout")));
			this.labelQuestion.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("labelQuestion.Dock")));
			this.labelQuestion.Font = null;
			this.labelQuestion.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("labelQuestion.ImageAlign")));
			this.labelQuestion.ImageIndex = ((int)(resources.GetObject("labelQuestion.ImageIndex")));
			this.labelQuestion.ImageKey = resources.GetString("labelQuestion.ImageKey");
			this.labelQuestion.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("labelQuestion.ImeMode")));
			this.labelQuestion.Location = ((System.Drawing.Point)(resources.GetObject("labelQuestion.Location")));
			this.labelQuestion.Name = "labelQuestion";
			this.labelQuestion.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("labelQuestion.RightToLeft")));
			this.labelQuestion.Size = ((System.Drawing.Size)(resources.GetObject("labelQuestion.Size")));
			this.labelQuestion.TabIndex = ((int)(resources.GetObject("labelQuestion.TabIndex")));
			this.labelQuestion.Text = resources.GetString("labelQuestion.Text");
			this.labelQuestion.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("labelQuestion.TextAlign")));
			// 
			// buttonOK
			// 
			this.buttonOK.AccessibleDescription = null;
			this.buttonOK.AccessibleName = null;
			this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("buttonOK.Anchor")));
			this.buttonOK.AutoSize = ((bool)(resources.GetObject("buttonOK.AutoSize")));
			this.buttonOK.AutoSizeMode = ((System.Windows.Forms.AutoSizeMode)(resources.GetObject("buttonOK.AutoSizeMode")));
			this.buttonOK.BackgroundImage = null;
			this.buttonOK.BackgroundImageLayout = ((System.Windows.Forms.ImageLayout)(resources.GetObject("buttonOK.BackgroundImageLayout")));
			this.buttonOK.DialogResult = System.Windows.Forms.DialogResult.OK;
			this.buttonOK.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("buttonOK.Dock")));
			this.buttonOK.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("buttonOK.FlatStyle")));
			this.buttonOK.Font = null;
			this.buttonOK.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("buttonOK.ImageAlign")));
			this.buttonOK.ImageIndex = ((int)(resources.GetObject("buttonOK.ImageIndex")));
			this.buttonOK.ImageKey = resources.GetString("buttonOK.ImageKey");
			this.buttonOK.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("buttonOK.ImeMode")));
			this.buttonOK.Location = ((System.Drawing.Point)(resources.GetObject("buttonOK.Location")));
			this.buttonOK.Name = "buttonOK";
			this.buttonOK.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("buttonOK.RightToLeft")));
			this.buttonOK.Size = ((System.Drawing.Size)(resources.GetObject("buttonOK.Size")));
			this.buttonOK.TabIndex = ((int)(resources.GetObject("buttonOK.TabIndex")));
			this.buttonOK.Text = resources.GetString("buttonOK.Text");
			this.buttonOK.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("buttonOK.TextAlign")));
			this.buttonOK.TextImageRelation = ((System.Windows.Forms.TextImageRelation)(resources.GetObject("buttonOK.TextImageRelation")));
			// 
			// buttonCancel
			// 
			this.buttonCancel.AccessibleDescription = null;
			this.buttonCancel.AccessibleName = null;
			this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("buttonCancel.Anchor")));
			this.buttonCancel.AutoSize = ((bool)(resources.GetObject("buttonCancel.AutoSize")));
			this.buttonCancel.AutoSizeMode = ((System.Windows.Forms.AutoSizeMode)(resources.GetObject("buttonCancel.AutoSizeMode")));
			this.buttonCancel.BackgroundImage = null;
			this.buttonCancel.BackgroundImageLayout = ((System.Windows.Forms.ImageLayout)(resources.GetObject("buttonCancel.BackgroundImageLayout")));
			this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
			this.buttonCancel.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("buttonCancel.Dock")));
			this.buttonCancel.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("buttonCancel.FlatStyle")));
			this.buttonCancel.Font = null;
			this.buttonCancel.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("buttonCancel.ImageAlign")));
			this.buttonCancel.ImageIndex = ((int)(resources.GetObject("buttonCancel.ImageIndex")));
			this.buttonCancel.ImageKey = resources.GetString("buttonCancel.ImageKey");
			this.buttonCancel.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("buttonCancel.ImeMode")));
			this.buttonCancel.Location = ((System.Drawing.Point)(resources.GetObject("buttonCancel.Location")));
			this.buttonCancel.Name = "buttonCancel";
			this.buttonCancel.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("buttonCancel.RightToLeft")));
			this.buttonCancel.Size = ((System.Drawing.Size)(resources.GetObject("buttonCancel.Size")));
			this.buttonCancel.TabIndex = ((int)(resources.GetObject("buttonCancel.TabIndex")));
			this.buttonCancel.Text = resources.GetString("buttonCancel.Text");
			this.buttonCancel.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("buttonCancel.TextAlign")));
			this.buttonCancel.TextImageRelation = ((System.Windows.Forms.TextImageRelation)(resources.GetObject("buttonCancel.TextImageRelation")));
			// 
			// TreeClearDialog
			// 
			this.AcceptButton = this.buttonOK;
			this.AccessibleDescription = null;
			this.AccessibleName = null;
			this.AutoScaleBaseSize = ((System.Drawing.Size)(resources.GetObject("$this.AutoScaleBaseSize")));
			this.AutoScroll = ((bool)(resources.GetObject("$this.AutoScroll")));
			this.AutoSize = ((bool)(resources.GetObject("$this.AutoSize")));
			this.AutoSizeMode = ((System.Windows.Forms.AutoSizeMode)(resources.GetObject("$this.AutoSizeMode")));
			this.BackgroundImage = null;
			this.BackgroundImageLayout = ((System.Windows.Forms.ImageLayout)(resources.GetObject("$this.BackgroundImageLayout")));
			this.CancelButton = this.buttonCancel;
			this.ClientSize = ((System.Drawing.Size)(resources.GetObject("$this.ClientSize")));
			this.ControlBox = false;
			this.Controls.Add(this.buttonCancel);
			this.Controls.Add(this.buttonOK);
			this.Controls.Add(this.labelQuestion);
			this.Font = null;
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
			this.Icon = null;
			this.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("$this.ImeMode")));
			this.Location = ((System.Drawing.Point)(resources.GetObject("$this.Location")));
			this.MaximizeBox = false;
			this.MaximumSize = ((System.Drawing.Size)(resources.GetObject("$this.MaximumSize")));
			this.MinimizeBox = false;
			this.Name = "TreeClearDialog";
			this.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("$this.RightToLeft")));
			this.RightToLeftLayout = ((bool)(resources.GetObject("$this.RightToLeftLayout")));
			this.StartPosition = ((System.Windows.Forms.FormStartPosition)(resources.GetObject("$this.StartPosition")));
			this.Text = resources.GetString("$this.Text");
			this.ResumeLayout(false);
		}
		#endregion
	}
}
